<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./assets/js/vue.js"></script>
    <link rel="stylesheet" href="./assets/font/iconfont.css">
    <style>
        *{
            margin: 0;
        }
        body{
            background-color: #583e7e;
            width: 100%;
            height: 100%;
            color:white;
            font-size: 20px;
        }
        #app{
            width: 100%;
            height: 100%;
        }
        #wrap{
            width: 300px;
            height: 100%;
        }
        #wrap>div:first-of-type{
            overflow: hidden;
        }
        #wrap>div:first-of-type>span{
            font-size: 80px;
        }
        #aside{
            background-color:rgba(26, 26, 26,0.8);
            width: 0px;
            overflow: hidden;
            white-space: nowrap;
            height: 100%;
            transition: all 200ms ease-in;
            flex-grow: 1;
            flex-shrink: 0;
            position: fixed;
            top: 0px;
            left: 0px;
        }
        #aside>div{
            padding: 30px 20px;
        }
        #aside>div>span{
            font-size: 24px;
            display: inline;
            padding-right: 20px;
        }
        #aside>div:nth-child(1){
            padding: 20px 10px;
            border-bottom: 1px solid white;
        }
        #aside>div:nth-child(1)>span{
            float:right;
            font-size: 30px;
            padding-right: 0;
        }
        .hidde{
            width: 0px;
        }
    </style>
</head>
<body>
    <div id="app">
        <div id="wrap">
            <div :class="size == 0 ? '':'hidde' "><span class="iconfont icon-calendar" @click=" size=300 "></span></div>
            <div id="aside" :style="size > 0 ? `width:${size}px`:'' ">
               <div>xxxxx管理
                   <span class="iconfont icon-close"  @click="size=0" ></span>
                </div>
               <div><span class="iconfont icon-users"></span>员工管理</div>
               <div><span class="iconfont icon-types"></span>部门管理</div> 
               <div><span class="iconfont icon-flexible"></span>组织管理</div> 
               <div><span class="iconfont icon-like"></span>健康统计</div> 
            </div>
        </div>
    </div>
    <script>
        new Vue({
            el:"#app",
            data:{
                size:0,
            }
        })
    </script>
</body>
</html>